   package com.javalong.affairs.base.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	private static final SimpleDateFormat sdf;
	static {
		sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
	}
	public static String formatDate(Date date) {
		return sdf.format(date);
	}
	public static long getTime(Date nowDate) {
		return nowDate.getTime()/1000;
	}
}
